package org.csu.canteen.persistence;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.csu.canteen.entity.Sequence;
import org.springframework.stereotype.Repository;

@Repository
public interface SequenceMapper extends BaseMapper<Sequence> {
    @Update("UPDATE sequence SET nextid = #{nextId} WHERE name = #{name}")
    void updateSequence(@Param("name") String name, @Param("nextId") int nextId);
}
